package com.yuanfeng.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuanfeng.business.dto.AuditDeliveryDTO;
import com.yuanfeng.business.dto.delivery.QueryIsDeliveryDTO;
import com.yuanfeng.business.dto.delivery.ShopSetDTO;
import com.yuanfeng.business.entity.ShopCashOnDeliveryEntity;
import com.yuanfeng.commoms.util.ResponseResult;

import java.util.Map;

/**
 * @ClassName ShopCashOnDeliveryService
 * @Description  货到付款
 * @Author cyp
 * @Date 2023-05-26 17:20:34
 * @Version 1.0
 **/
public interface ShopCashOnDeliveryService extends IService<ShopCashOnDeliveryEntity> {
    /**
     * 查询店铺是否开通货到付款
     * @param queryIsDeliveryDTO
     * @return
     */
     ResponseResult queryIsDelivery(QueryIsDeliveryDTO queryIsDeliveryDTO);

    /**
     * 查询申请开通货到支付页面的店铺配置信息
     * @param queryShopSetDTO
     * @return
     */
    ResponseResult queryShopSetDelivery(ShopSetDTO queryShopSetDTO);

    /**
     * 店铺申请开启/关闭货到付款
     * @param applyPayOnDeliveryDTO
     * @return
     */
    ResponseResult applyPayOnDeliveryOn(ShopSetDTO applyPayOnDeliveryDTO);

    /**
     * 平台审核货到付款接口
     *
     * @param param
     * @return
     */
    ResponseResult auditDelivery(AuditDeliveryDTO param);


    /**
     * 平台查询货到付款申请的店铺列表
     *
     * @param param
     * @return
     */
    ResponseResult queryDeliveryShop(Map<String,Object> param);
 }
